id/email
password
forgot password | create account
about | help | prefs
ReadingBatcode reading practice

 

 

Athenian: Grab Bagsquare_root

prev  |  next  |  chance

Predict the result
by Yuk '24
(Note: the math module is already imported)

def square_roots(n):
    if math.sqrt(n) == (n / 2) and n >= 0:
        return True
    else:
        return False
Function Call  Return Value
square_roots(4)
square_roots(1)
square_roots(9)
square_roots(36)
square_roots(16)

Experiment with this code on Gitpod.io

⬅ Back